﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="UserProfile.aspx.cs" Inherits="UserProfile" %>

<%@ MasterType VirtualPath="~/Site.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="fancybox/jquery.fancybox.js" type="text/javascript"></script>
    <link href="fancybox/jquery.fancybox.css" rel="stylesheet" type="text/css" />
    <script src="fancybox/helpers/jquery.fancybox-thumbs.js" type="text/javascript"></script>
    <link href="fancybox/helpers/jquery.fancybox-thumbs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $("a[rel=usercompanyimages]").fancybox({ helpers: { thumbs: { width: 50, height: 50}} });

            $("a[name=DeleteReviewAdmin]").click(function (e) {
                e.preventDefault();
                var revioid = $(this).parent().attr("revid");
                var params = "RemoveReview|" + revioid;
                var ggp = $(this).parent().parent().parent();
                ggp.hide('slow');
                CallServer(params, "");
            });
        });
        function ReceiveServerData(arg, context) { var parts = arg.split("|"); switch (parts[0]) { case "Success": { break; } case "Error": break; case "Fail": break; default: break; } }
    </script>
    <script src="scripts/userprofile.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <tr>
        <td class="center">
            <div class="all_content">
                <div class="content">
                    <div class="content-top">
                        <div class="content-bottom">
                            <div class="content-center">
                                <div class="user_profile">
                                    <!--profile_left-->
                                    <div class="prof_left">
                                        <div class="box_title">
                                            მომხმარებელი</div>
                                        <div class="box_content">
                                            <div class="user_info">
                                                <div class="user_img">
                                                    <img id="UserAvatarImg" runat="server" src="images/no-avatar.jpeg" width="50" height="50"
                                                        alt="" align="center" />
                                                </div>
                                                <div class="user_name">
                                                    <div id="firstName" runat="server" class="user_nm">
                                                    </div>
                                                    <div class="user_lnm" id="lastName" runat="server">
                                                    </div>
                                                    <div class="user_rat">
                                                        <div class="outer-Rating">
                                                            <%--<div id="rateing" runat="server" class="inner-star">--%>
                                                            <div id="rateing" class="Rating-Inner" runat="server">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="u_cat_img" style="display: none;">
                                                <div class="img_box">
                                                    <div class="user_imgs">
                                                        <a href="#">
                                                            <img src="images/User_mgs.png" width="76" height="54" alt="" /></a>
                                                    </div>
                                                    <div class="user_imgs">
                                                        <a href="#">
                                                            <img src="images/User_mgs.png" width="76" height="54" alt="" /></a>
                                                    </div>
                                                    <div class="user_imgs">
                                                        <a href="#">
                                                            <img src="images/User_mgs.png" width="76" height="54" alt="" /></a>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="img_box">
                                                    <div class="user_imgs">
                                                        <a href="#">
                                                            <img src="images/User_mgs.png" width="76" height="54" alt="" /></a>
                                                    </div>
                                                    <div class="user_imgs">
                                                        <a href="#">
                                                            <img src="images/User_mgs.png" width="76" height="54" alt="" /></a>
                                                    </div>
                                                    <div class="user_imgs">
                                                        <a href="#">
                                                            <img src="images/User_mgs.png" width="76" height="54" alt="" /></a>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="display_more">
                                            <div class="co_left_b">
                                            </div>
                                            <div class="ce_px_b">
                                                <asp:LinkButton ID="SubscriberID" Style="margin-left: 100px; font-size: 16px; color: red;"
                                                    runat="server" Visible="false" OnClick="SubsciberClick" Text="დაიმეგობრე" />
                                                <asp:LinkButton ID="UnSubscriberID" Style="margin-left: 47px; font-size: 16px; color: rgb(255, 255, 255);"
                                                    runat="server" Visible="false" OnClick="UnSubsciberClick" Text="წაშალე მეგობრებიდან" />
                                                <a href="#" id="EditUser" runat="server"><span id="ProfileEdit" style="margin-left: 60px"
                                                    runat="server" visible="false">პროფილის რედაქტირება</span> </a>
                                            </div>
                                            <div class="co_right_b">
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="box_title">
                                            პირადი ინფორმაცია</div>
                                        <div class="block_gr">
                                            <div class="info_block">
                                                <div class="info_l">
                                                    ბოლო განხილვა</div>
                                                <div id="lastreview" runat="server" class="info_r">
                                                    25 February 2012</div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="info_block">
                                                <div class="info_l">
                                                    დაბ.თარიღი:</div>
                                                <div id="birthdate" runat="server" class="info_r">
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="info_block">
                                                <div class="info_l">
                                                    სქესი:</div>
                                                <div id="gender" runat="server" class="info_r">
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="info_block">
                                                <div class="info_l">
                                                    აქტიურია კატეგორიაში:</div>
                                                <div id="ActiveCategory" runat="server" class="info_r">
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="info_block">
                                                <div class="info_l">
                                                    მინაწერი:</div>
                                                <div id="Signature" clientidmode="Static" runat="server" class="info_r">
                                                </div>
                                                <textarea id="editedSignatureText" style="max-width: 62%; display:none;"></textarea>
                                                <a id="editSignature" runat="server" clientidmode="Static" title="რედაქტირება" href="#" class="edit" style="float: right; height: 15px;
                                                    margin-top: 4px;">
                                                    <img src="../images/edit_icon.png" alt="Edit" /></a>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="info_block" style="display: none;">
                                                <div class="info_l">
                                                    მეილი:</div>
                                                <div runat="server" id="email" class="info_r">
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <%--    <div class="info_block">
                                                <a href="#" id="EditUser" runat="server">
                                                    <asp:Label Text="პროფილის რედაქტირება" ID="ProfileEdit" runat="server" Visible="false" />
                                                </a>
                                                <div class="clear">
                                                </div>
                                            </div>--%>
                                        </div>
                                        <div class="black_m_l" style="display: none;">
                                            <div class="black_m_r">
                                            </div>
                                            <div class="black_m_c">
                                                <input type="submit" class="display_m" value="SUGGEST A COMPANY" />
                                            </div>
                                            <div class="black_m_r">
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="prof_right">
                                        <div class="title">
                                            <div class="page_title">
                                                მომხმარებლის განხილვები</div>
                                            <div class="art_rev">
                                                <asp:Literal ID="UserReviewsCount" runat="server" />
                                                განხილვა</div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <asp:Repeater ID="ReviewHistoryRep" runat="server" OnItemDataBound="ReviewHistoryRep_DataBound">
                                            <ItemTemplate>
                                                <asp:Literal ID="ReviewItem" runat="server" />
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        <div class="pagenation_l">
                                            <asp:PlaceHolder ID="pages" runat="server"></asp:PlaceHolder>
                                        </div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </td>
    </tr>
</asp:Content>
